<template>
	<view class="Insurance_choice">
		<view class="Insurance_choice_header">
			<view class="Insurance_choice_header_box" :class="{active:index == choose}"
				v-for="(item,index) in box_nav_type" :key="item" @tap="choosenav(index)">
				<text class="Insurance_choice_header_box_t">{{item}}</text>
			</view>
		</view>
		<swiper class="swiper-item" :current="choose" @change="pagecurrent" >
			<swiper-item class="wapper_1" v-for="(item,index) in Insurance_nav" :key="item._id" >
				<view class="swiper-item">
					<view class="Insurance_choice_main">
						<view class="Insurance_choice_main_box" v-for="pro in item.arryIns" :key="pro._id">
							<view class="nsurance_choice_main_box_img">
								<image :src="pro.img" class="nsurance_choice_main_box_img_1" mode="">
								</image>
							</view>
							<view class="Insurance_choice_main_box_content">
								<text class="Insurance_choice_main_box_content_t1">{{pro.name}}</text>
								<text class="Insurance_choice_main_box_content_t2">\n{{pro.des}}</text>
								<view class="Insurance_choice_main_box_content_t2_1">
									<text class="Insurance_choice_main_box_content_t4">{{pro.money}}</text>
									<text class="Insurance_choice_main_box_content_t5">{{pro.type}}</text>
								</view>
							</view>

						</view>

					</view>

				</view>
			</swiper-item>

		</swiper>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				Insurance_nav: [{
						_id: "000",
						manclass: "个人",
						arryIns: [{
								_id: 1,
								name: "超医保·百万医疗险",
								des: "网红百万医疗 / 性价比之王",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren01.png"
							},
							{
								_id: 2,
								name: "超医保·综合意外险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren02.png"
							},
							{
								_id: 3,
								name: "超医保·百万医疗险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren03.png"
							},
							{
								_id: 4,
								name: "超医保·百万医疗险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren04.png"
							}
						]
					},
					{
						_id: "001",
						manclass: "配偶",
						arryIns: [{
								_id: 1,
								name: "超医保·百万医疗险",
								des: "网红百万医疗 / 性价比之王",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren01.png"
							},
							{
								_id: 2,
								name: "超医保·综合意外险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren02.png"
							},
							{
								_id: 3,
								name: "超医保·百万医疗险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren03.png"
							},
							{
								_id: 4,
								name: "超医保·百万医疗险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren04.png"
							}
						]
					}, {
						_id: "002",
						manclass: "子女",
						arryIns: [{
								_id: 1,
								name: "超医保·百万医疗险",
								des: "网红百万医疗 / 性价比之王",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren01.png"
							},
							{
								_id: 2,
								name: "超医保·综合意外险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren02.png"
							},
							{
								_id: 3,
								name: "超医保·百万医疗险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren03.png"
							},
							{
								_id: 4,
								name: "超医保·百万医疗险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren04.png"
							}
						]
					}, {
						_id: "003",
						manclass: "父母",
						arryIns: [{
								_id: 1,
								name: "超医保·百万医疗险",
								des: "网红百万医疗 / 性价比之王",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren01.png"
							},
							{
								_id: 2,
								name: "超医保·综合意外险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren02.png"
							},
							{
								_id: 3,
								name: "超医保·百万医疗险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren03.png"
							},
							{
								_id: 4,
								name: "超医保·百万医疗险",
								des: "0免赔 / 100%赔付",
								money: "￥10",
								type: "/ 月起",
								img: "/pagesB/static/picture_baoxian_benren04.png"
							}
						]
					}
				],

				box_nav_type: ["本人", "配偶", "子女", "父母"],
				choose: 0,
			}
		},
		methods: {
			choosenav(index) {
				this.choose = index
			},
			pagecurrent(current){
				console.log(current)
				this.choose = current.detail.current
			}
		}
	}
</script>

<style scoped lang="scss">
	.swiper-item {
		height: 882rpx;
	}

	.Insurance_choice {
		box-sizing: border-box;
		margin-top: 8rpx;
		padding: 40rpx;

		.Insurance_choice_header {
			display: flex;
			justify-content: space-between;
			width: 500rpx;

			.Insurance_choice_header_box {
				width: 64rpx;
				height: 44rpx;
				font-family: PingFang SC;
				font-size: 32rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 44rpx;
				letter-spacing: 0rpx;
				color: #bbbbbb;
			}

			.active {
				color: #323232;
			}
		}
	}

	.Insurance_choice_main {
		margin-top: 48rpx;

		.Insurance_choice_main_box {
			display: flex;
			border-bottom: 1px solid #F2F6FF;
			margin-top: 24rpx;

			.nsurance_choice_main_box_img {
				.nsurance_choice_main_box_img_1 {
					width: 136rpx;
					height: 156rpx;

				}
			}

			.Insurance_choice_main_box_content {
				margin-left: 24rpx;

				.Insurance_choice_main_box_content_t2_1 {
					margin-top: 10rpx;
					margin-bottom: 32rpx;
				}

				.Insurance_choice_main_box_content_t1 {
					width: 272rpx;
					height: 44rpx;
					font-family: PingFang SC;
					font-size: 32rpx;
					font-weight: normal;
					font-stretch: normal;
					line-height: 44rpx;
					letter-spacing: 0rpx;
					color: #323232;
				}

				.Insurance_choice_main_box_content_t2 {
					width: 204rpx;
					height: 34rpx;
					font-family: PingFang SC;
					font-size: 24rpx;
					font-weight: normal;
					font-stretch: normal;
					line-height: 34rpx;
					letter-spacing: 0rpx;
					color: #474747;
					opacity: 0.7;
				}

				.Insurance_choice_main_box_content_t4 {
					width: 84rpx;
					height: 54rpx;
					font-family: DIN;
					font-size: 40rpx;
					font-weight: normal;
					font-stretch: normal;
					line-height: 44rpx;
					letter-spacing: 0rpx;
					color: #fc1212;
					opacity: 0.7;
				}

				.Insurance_choice_main_box_content_t5 {
					width: 68rpx;
					height: 34rpx;
					font-size: 24rpx;
					font-weight: normal;
					font-stretch: normal;
					line-height: 44rpx;
					letter-spacing: 0rpx;
					color: #fe3e3e;
					opacity: 0.7;
				}
			}
		}
	}
</style>
